package com.sky.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.sky.common.EnumDeserializer;
import com.sky.common.EnumSerializer;
import com.sky.entity.SetmealDishEntity;
import com.sky.enumeration.SetmealStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SetmealVO {
    private Long id;
    private Long categoryId;
    private String categoryName;
    private String name;
    private String description;
    private Long price;
    @JSONField(serializeUsing = EnumSerializer.class, deserializeUsing = EnumDeserializer.class)
    private SetmealStatusEnum status;
    private LocalDateTime updateTime;
    private List<SetmealDishEntity> setmealDishes = new ArrayList<>();
}
